<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>系统设置</title>
    <link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="topbar">
    <div class="dock"></div>
    <div class="win-title"><img class="win-icon" src="./favicon.ico" alt="">系统设置</div>
    <div id="winHelp" title="设置" class="my">
        <i class="sprite-settings"></i>
    </div>
    <div id="minWindow" title="最小化" class="my">
        <i class="sprite-window-minimize"></i>
    </div>
    <div id="maxWindow" title="最大化" class="my">
        <i class="sprite-window-maximize"></i>
    </div>
    <div id="unMaxWindow" title="还原" class="my">
        <i class="sprite-window-restore"></i>
    </div>
    <div id="closeWindow" title="关闭" class="my">
        <i class="sprite-window-close"></i>
    </div>
</div>
<div class="winbody" style="margin-left: 5px;">
   <h1 id="title">系统设置</h1>
   <a href="https://naive.soybeanjs.cn/manage/user">soybeanjs</a>
   <a href="https://www.baidu.com">百度在线</a><br/>
    <div>

    </div>
    <button id="sendMsg">向主进程发送指令</button><br/>
    <button id="btnClose" onclick="onBtnClose_click()">关闭</button><br/>；
    <img src=""/>
</div>
<script src="./renderer.js"></script>
</body>
</html>
<script type="text/javascript">
    function onBtnClose_click(){
        alert("onBtnClose_click")
        closeWin()
    }

    function minWin() {
        window.electronAPI.minWin()
    }

    function maxWin() {
        // isMax.value = true
        window.electronAPI.maxWin()
    }

    function restoreWin() {
        // isMax.value = false
        window.electronAPI.restoreWin()
    }

    function closeWin() {
        window.electronAPI.closeWin()
    }
</script>